package com.xinqi.modules.user.users.user.convert;

import com.xinqi.modules.user.user.domain.UserExtendEntity;
import com.xinqi.modules.user.user.dto.req.UserExtendCreateDTO;
import com.xinqi.modules.user.user.dto.req.UserExtendUpdateDTO;
import com.xinqi.modules.user.user.dto.rsp.UserExtendResultDTO;
import com.xinqi.common.mapstruct.CommonConvertConfig;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 用户扩展信息转换
 *
 * @author: wenjie
 * @date: 2023/05/17
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class UserExtendConvert {
    public abstract UserExtendEntity create(UserExtendCreateDTO s);

    public abstract UserExtendEntity update(UserExtendUpdateDTO s, @MappingTarget UserExtendEntity t);

    public abstract UserExtendEntity update(UserExtendUpdateDTO s);

    public abstract UserExtendResultDTO convert(UserExtendEntity s);
}
